package com.ruicar.afs.cloud.apply.admin.manage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.apply.admin.manage.entity.SysRole;
import com.ruicar.afs.cloud.apply.admin.manage.mapper.ApplyRoleMapper;
import com.ruicar.afs.cloud.apply.admin.manage.service.ApplyRoleService;
import com.ruicar.afs.cloud.apply.admin.manage.vo.SysRoleVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: Lee
 * @date 2020-06-03 11:03:35
 * @description
 */
@Service
public class ApplyRoleServiceImpl extends ServiceImpl<ApplyRoleMapper, SysRole> implements ApplyRoleService {

    @Override
    public List<SysRole> findByUserName(String userName) {
        return baseMapper.findByUserName(userName);
    }

    @Override
    public List<SysRoleVo> getUserRole(Long channelId) {
        return baseMapper.getUserRole(channelId);
    }
}
